home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / rfc.xml < prev    next >
Text File  |  2002-08-30  |  3KB  |  113 lines

  1. <search function="rfc">
  2.   <name>RFC/STD/FYI/BCP Archives</name>
  3.   <description>
  4.     Internet RFC/STD/FYI/BCP Archives <br/>
  5.     <div class="helpboxDescLabels">Usage:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>rfc search term /switch</td></tr>
  8.       </table>
  9.     <div class="helpboxDescLabels">Switches:</div>
  10.       <table class="helpboxDescTable">
  11.       <tr><td>/ref</td><td> - </td><td>Find references to search term. (default)</td></tr>
  12.       <tr><td>/rank</td><td> - </td><td>Find number of references to search term per document.</td></tr>
  13.       <tr><td>/rfc</td><td> - </td><td>Find RFCs with the search term.</td></tr>
  14.       <tr><td>/fyi</td><td> - </td><td>Find FYIs with the search term.</td></tr>
  15.       <tr><td>/bcp</td><td> - </td><td>Find BCPs with the search term.</td></tr>
  16.       <tr><td>/std</td><td> - </td><td>Find STDs with the search term.</td></tr>
  17.       <tr><td>/num</td><td> - </td><td>Go to the RFC with this number.</td></tr>
  18.       </table>
  19.     <div class="helpboxDescLabels">Examples:</div>
  20.     <table class="helpboxDescTable">
  21.           <tr><td>rfc 2022 /num</td></tr>
  22.           <tr><td>rfc POP3</td></tr>
  23.           <tr><td>rfc mom /fyi</td></tr>
  24.       </table>
  25.   </description>
  26.   <category>Computers</category>
  27.   <link>http://www.faqs.org/rfcs/index.html</link>
  28.   <contributor>Joey Lesh</contributor>
  29.   
  30.   <form name="rfcf" 
  31.         METHOD="POST" 
  32.         ACTION="http://www.faqs.org/cgi-bin/rfcsearch">
  33.     <INPUT TYPE="hidden" NAME="query" />
  34.     <INPUT TYPE="hidden" NAME="archive" />
  35.   </form>
  36.  
  37.     <form 
  38.         name="rfcnumf" 
  39.         METHOD="POST" 
  40.         ACTION="http://www.faqs.org/cgi-bin/rfcdisplay">
  41.       <INPUT TYPE="hidden" NAME="display" />
  42.     </form>
  43.   
  44.   <script><![CDATA[
  45.     function rfc(q)
  46.     {
  47.       if( nullArgs("rfc",q) )
  48.         return false;
  49.       else
  50.       {
  51.         var args = parseArgs(q, "ref, rfc, fyi, bcp, std, rank, num");
  52.  
  53.         if( args.switches.length > 0 )
  54.             switch( args.switches[0].name )
  55.             { 
  56.               case "ref": 
  57.                 document.rfcf.archive.value = "rfcs"; 
  58.                 document.rfcf.query.value = args.q;
  59.                    submitForm( rfcf );
  60.                 break;
  61.               case "num":         
  62.                   document.rfcnumf.display.value = args.q; 
  63.                 submitForm( rfcnumf );
  64.                 break;
  65.               case "rfc": 
  66.                 document.rfcf.archive.value = "rfcindex";
  67.                 document.rfcf.query.value = args.q;
  68.                    submitForm( rfcf );
  69.                 break;
  70.               case "fyi": 
  71.                 document.rfcf.archive.value = "fyiindex"; 
  72.                 document.rfcf.query.value = args.q;
  73.                    submitForm( rfcf );
  74.                 break;
  75.               case "bcp": 
  76.                 document.rfcf.archive.value = "bcpindex";
  77.                 document.rfcf.query.value = args.q;
  78.                    submitForm( rfcf );
  79.                 break;
  80.               case "std": 
  81.                 document.rfcf.archive.value = "stdindex"; 
  82.                 document.rfcf.query.value = args.q;
  83.                    submitForm( rfcf );
  84.                 break;
  85.               case "rank": 
  86.                 document.rfcf.archive.value = "rank"; 
  87.                 document.rfcf.query.value = args.q;
  88.                    submitForm( rfcf );
  89.                 break;
  90.               default: 
  91.                 document.rfcf.archive.value = "rfcs"; 
  92.                 document.rfcf.query.value = args.q;
  93.                    submitForm( rfcf );
  94.                 break;
  95.             }
  96.         else
  97.         {
  98.             document.rfcf.archive.value = "rfcs";
  99.             document.rfcf.query.value = args.q;
  100.                submitForm( rfcf );
  101.         }
  102.       }
  103.     }
  104.   ]]></script>
  105.  
  106.   <copyright>
  107.     Copyright (c) 2002 David Bau
  108.     Distributed under the terms of the
  109.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  110.   </copyright>
  111. </search>
  112.  
  113.